package com.li.dao;
import com.li.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {
    public User login(String name, String password);
    public int addUser(@Param("user")User user);

    public User checkAddUser(String name);
    public  List<User> selectUsers(int id ,String key,int page,int pageSize);
    public List<User> selectAllUserById(List<String> uids);

    public long count(int id ,String key);
    public int deleteUsers(List<Integer> ids);
    public User selectOne(int id);
    public int updateUser(@Param("user")User user);
    public List<User> selectAllUsers();
}


